/*
 * @LastEditors: hyduan
 * @Date: 2021-06-28 12:27:42
 * @LastEditTime
 */
const state = {
    userInfo: false
}

// 操作
const mutations = {
    SET_USER_INFO (state, userInfo) {
        state.userInfo = userInfo
    }
}

const actions = {
    setUserInfo ({ commit }, userInfo) {
        commit('SET_USER_INFO', userInfo)
    }
}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}
